Entering cycle time within PLC-object

How to enter the cycle time:

  1. Open a PLC-object.

  2. Search for the following line in the opened editor for the PLC-object:

    Syntax
    TASK task-name(INTERVAL := TIME#numberms, PRIORITY := number);
    Example
    TASK DefaultTask(INTERVAL := TIME#500ms, PRIORITY := 38229);

    After you have created a project, a cycle time of 500 ms is already specified within the existing PLC-objects. 

  3. Replace the entered cycle time (e.g. TIME#500ms) by the requested cycle time. Enter the cycle time as duration →literal; maximum: TIME#20d
    Observe that your used →target system might influence the timing scheduling when calling tasks (see "Properties and restrictions specific to the target system").

    Examples for duration literals: see under "Assignments in ST"

  4. Save the PLC-object: menu File – Save

Triggered execution of an application

The →runtime system for Windows and platform LinuxX86 is configured so that an application with the cycle time 0 is started without init state. If there is the need, it is possible to change this configuration. See "Can I configure the execution of an application (the executed cycles)?" for the description of TriggeredTasks.HaveInitCycle.